﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SS.HP.Model
{
    public class Book : IDeepClonable<Book>
    {
        public string Title { get; set; }
        public double RecommendedRetailPrice { get; set; }
        public Series Series { get; set; }
        public int SeriesIndex { get; set; }
        public double DiscountedPrice { get; set; }

        public Book DeepClone()
        {
            var book = (Book)MemberwiseClone();
            book.Series = Series.DeepClone();
            return book;
        }
    }

    public interface IDeepClonable<T>
    {
        T DeepClone();
    }
}
